package com.holly.unit.bpmn.designer.core.strategy;

import com.holly.unit.bpmn.designer.core.bpmn.BpmnModelFactory;
import com.holly.unit.bpmn.designer.model.ChildNode;
import org.activiti.bpmn.model.UserTask;

/**
 * 接口描述: 创建任务策略定义
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/5/13 8:49
 */
public interface CreateTaskStrategy {

    /***
     * 创建用户审批节点
     * @param node
     * @param factory
     * @return
     */
    UserTask createTask(ChildNode node,BpmnModelFactory factory);

}
